<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <title>修改密码</title>
        <link rel="stylesheet" href="{{$http_url}}/css/style.css" type="text/css" />
    </head>

    <body class="ContentBody">
        <form action="{{$http_url}}/update_time/" method="post" name="form" >
            <div class="MainDiv">
                <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
                    <tr>
                        <th class="tablestyle_title" >修改用户密码</th>
                    </tr>
                    <tr>
                        <td class="CPanel">
                            <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                                <tr>
                                    <td width="100%">
                                        <fieldset style="height:100%;">
                                            <legend>修改过期密码</legend>
                                            <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                                <tr>
                                                    <td width="10%" align="right" nowrap="nowrap">用户名称:</td>
                                                    <td width="10%"><span class="red">{{$username}}</span></td>
                                                    </tr>
                                                <tr>
                                                    <td width="10%" align="right" nowrap="nowrap">密码:</td>
                                                    <td width="30%"><input id="txtpassword" type="password" class="text" name='password' onpaste="return false" style="width:160px" value=""><span class="red">*{{$pwdTxt.txt}},{{$pwdTxt.length}}位</span></td>
                                                    </tr>
                                                <tr>
                                                    <td width="10%" align="right" nowrap="nowrap">确认密码:</td>
                                                    <td width="30%"><input id="txtpassword_confirm" type="password" class="text" onpaste="return false" name='con_password' style="width:160px" value=""></td>
                                                </tr>
                                            </table>
                                            <br />
                                        </fieldset></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <TR>
                        <TD colspan="2" align="center" height="50px">
                            <input type="submit" name="Submit" id="submit" value="保存" class="button"/></TD>
                    </TR>
                </table>
                </td>
                </tr>
                </table>
            </div>
        </form>
        <script type="text/javascript" src="{{$http_url}}/js/jquery.min.js"></script>
        <script type="text/javascript" src="{{$http_url}}/js/authentication.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                alert("您的用户密码已过期,请重新修改密码!");
                $("#submit").click(function(){
                    var pwd=$("#txtpassword").val();
                    if(authentication.isEmpty(pwd)){
                        alert("请输入密码!");
                        return false;
                    }
                    if($("#txtpassword").val() !=$("#txtpassword_confirm").val()){
                        alert("确认密码与密码不同,请重新输入!");
                        return false;
                    }
                });
            })
        </script>
    </body>
</html>
